package bupt.xixi.loadbalancer;

import java.util.List;
import java.util.Random;

public class RandomBalancer implements LoaderBalancer {
    @Override
    public String select(List<String> instances) {
        return instances.get(new Random().nextInt(instances.size()));
    }
}
